Using --ignore-platform-req and --ignore-platform-reqs with Composer


Using --ignore-platform-req and --ignore-platform-reqs flags to bypass specific or all platform requirements during Composer install or update.

It's useful when your development environment is missing certain PHP extensions or versions.

// ignore specific one
composer install --ignore-platform-req=ext-php

// ignore all 
composer update --ignore-platform-reqs

--ignore-platform-req=ext-php: Ignores a specific platform requirement, useful when a single extension is missing.

--ignore-platform-reqs: Ignores all platform requirements, useful when multiple extensions or PHP versions are not met.

You Might Also Like

Custom Blade Directives in Laravel

# Step 1: Create a Custom Blade Directive Add custom directives in the boot method of a service prov...

Extend Existing Artisan Commands

Extend and customize built-in Laravel Artisan commands to suit specific requirements. This technique...